<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var chinese = +prompt("语文成绩");
    var english = +prompt("英语成绩");
    var math = +prompt("数学成绩");
    var chemistry = +prompt("化学成绩");
    var physics = +prompt("物理成绩");
    if((chinese+english+math+chemistry+physics)/5>85&&chinese>=60&&english>=60&&math>=60&&chemistry>=60&&physics>=60){
        console.log("成绩优秀");
    }else if((chinese+english+math+chemistry+physics)/5>85&&chinese<60||english<60||math<60||chemistry<60||physics>=60){
        console.log("成绩良好");
    }else if((chinese+english+math+chemistry+physics)/5>=70){
        console.log("成绩良好");
    }else if((chinese+english+math+chemistry+physics)/5>60){
        console.log("成绩及格");
    }else{
        console.log("成绩不及格");
    }
</script>    